﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AdminList.aspx.cs" Inherits="Whir_System_Module_Role_AdminList" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../Skin/Default/Css/main.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript">
        if (top.location == self.location) { 
            alert('禁止访问子栏目页！将跳转到默认页面');
            top.location='../../Default.aspx';
        } 
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#E2E0E0">
            <tr>
                <td height="25" align="center" class="grid_Title" width="20%">登录帐号</td>
                <td width="20%" align="center" class="grid_Title">管理员姓名</td>
                <td width="20%" align="center" class="grid_Title">管理员角色</td>
                <td width="25%" align="center" class="grid_Title">创建时间</td>
                <td width="15%" align="center" class="grid_Title">管理操作</td>
            </tr>
            <asp:Repeater ID="rAdmin" runat="server">
                <ItemTemplate>
                    <tr>
                        <td height="22" align="center" bgcolor="#FFFFFF">
                            <%# Eval("adminName") %>
                        </td>
                        <td align="center" bgcolor="#FFFFFF">
                            <%# Eval("adminTrueName") %>
                        </td>
                        <td align="center" bgcolor="#FFFFFF">
                            <%# getTypeName(Eval("TypeID").ToString()) %>
                        </td>
                        <td align="center" bgcolor="#FFFFFF">
                            <%# Eval("createDate") %>
                        </td>
                        <td align="center" bgcolor="#FFFFFF"><a href="AddAdmin.aspx?id=<%# Eval("adminID") %>"
                            title="修改">
                            <img src="../../image/CommonImage/eip_edit.gif" style="border: 0px;" /></a>&nbsp;<a
                                onclick="return confirm('确定要删除吗？一旦删除将不可恢复！');" href="?id=<%# Eval("adminID") %>&action=delete"
                                title="删除">
                                <img src="../../image/CommonImage/eip_deleted.gif" style="border: 0px;" /></a>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
    </form>
</body>
</html>
